class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score

    def print_score(std):
        print(f"{std.name}:{std.score}")

bart = Student('Bart Simpson', 58)

bart.print_score()